<template>
<onekit-page>
<onekit-view onekit-class="container">
	<div is="onekit-template-head" :DATA="`${JSON.stringify({title:'toast'})}`"></div>
	<onekit-view onekit-class="page-body">
		<onekit-view onekit-class="btn-area">
			<onekit-view onekit-class="body-view">
				<onekit-button type="default" @Tap="toast1Tap">点击弹出默认toast</onekit-button>
			</onekit-view>
			<onekit-view onekit-class="body-view">
				<onekit-button type="default" @Tap="toast2Tap">点击弹出设置duration的toast</onekit-button>
			</onekit-view>
			<onekit-view onekit-class="body-view">
				<onekit-button type="default" @Tap="toast3Tap">点击弹出显示loading的toast</onekit-button>
			</onekit-view>
			<onekit-view onekit-class="body-view">
				<onekit-button type="default" @Tap="hideToast">点击隐藏toast</onekit-button>
			</onekit-view>
		</onekit-view>
	</onekit-view>
	<div is="onekit-template-foot"></div>
</onekit-view>
</onekit-page></template>
<script>
/* eslint-disable */
import Vue from 'vue';
import onekit_template_0 from '../../../common/head.head.vue';Vue.component('onekit-template-head',onekit_template_0);
import onekit_template_1 from '../../../common/foot.foot.vue';Vue.component('onekit-template-foot',onekit_template_1);
const ONEKIT_JSON= {
  "navigationBarTitleText": "消息提示框",
  "usingComponents": {
    
  }
};
const ONEKIT_SJS = {
};
import wx from '../../../../weixin2vue/wx.js';
import Macro from '../../../../weixin2vue/Macro.js';
const {getApp,getCurrentPages} = Macro;
import Page from '../../../../weixin2vue/OnekitPage.js';
import Component from '../../../../weixin2vue/OnekitComponent.js';
export default Page(ONEKIT_JSON,[],ONEKIT_SJS,{
    "onShareAppMessage"(){
      return {
        "title":'消息提示框',
        "path":'packageAPI/pages/toast/toast'
};
    },
    "toast1Tap"(){
      wx.showToast({
        "title":'默认'
});
    },
    "toast2Tap"(){
      wx.showToast({
        "title":'duration 3000',
        "duration":3000
});
    },
    "toast3Tap"(){
      wx.showToast({
        "title":'loading',
        "icon":'loading',
        "duration":5000
});
    },
    "hideToast"(){
      wx.hideToast();
    }
});

</script>
<style 
 lang="css">
</style>